<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<title>ViewerSetMode</title>
<meta http-equiv="Content-Type" Content="text/html; charset=utf-8">
<link rel="stylesheet" type="text/css" href="../../styles/styles.css">
<script language="javascript" src='../links.js' type="text/javascript"></script>
</head>
<body>

<h1>ViewerSetMode</h1>
<div class=navbar>
<a href="../index.html">main</a> |
<a  href="index.html">structures</a><br>
</div>

<div class=shortdescr>
The <dfn>ViewerSetMode</dfn> structure is used to set the view mode of the current viewer instance.
</div>

<pre class=syntax>
struct ViewerSetMode
{
  int Type;
  union {
    int iParam;
    char *cParam;
  } Param;
  DWORD Flags;
  DWORD Reserved;
};
</pre>

<h3>Elements</h3>
<div class=descr>
  <div class=dfn>Type</div>
  <div class=dfndescr>Mode type. Can be one of the following values (<a name="VIEWER_SETMODE_TYPES">VIEWER_SETMODE_TYPES</a> enum):
    <table class="cont">
      <tr class="cont"><th class="cont" width="40%">Mode</th><th class="cont" width="60%">Description</th></tr>

    <tr class="cont"><td class="cont" width="40%"><a name="VSMT_HEX">VSMT_HEX</a></td>
    <td class="cont" width="60%">Text/Hex mode: <var>iParam</var>=1 - turn Hex mode on, <var>iParam</var>=0 - text mode.</td></tr>

    <tr class="cont"><td class="cont" width="40%"><a name="VSMT_WRAP">VSMT_WRAP</a></td>
    <td class="cont" width="60%">Line wrap: <var>iParam</var>=1 - line wrap is on, <var>iParam</var>=0 - off)
    </td></tr>

    <tr class="cont"><td class="cont" width="40%"><a name="VSMT_WORDWRAP">VSMT_WORDWRAP</a></td>
    <td class="cont" width="60%">Word wrap: <var>iParam</var>=1 - word wrap is on, <var>iParam</var>=0 - off.
    </td></tr>

   </table>

  </div>

  <div class=dfn>iParam</div>
  <div class=dfndescr>Integer value, see details above.</div>

  <div class=dfn>cParam</div>
  <div class=dfndescr>Pointer to a null terminated string, see details above.</div>

  <div class=dfn>Flags</div>
  <div class=dfndescr>Additional flags (<a name="VIEWER_SETMODEFLAGS_TYPES">VIEWER_SETMODEFLAGS_TYPES</a> enum):
    <table class="cont"><tr class="cont"><th class="cont" width="40%">Mode</th><th class="cont" width="60%">Description</th></tr>

    <tr class="cont"><td class="cont" width="40%"><a name="VSMFL_REDRAW">VSMFL_REDRAW</a></td>
    <td class="cont" width="60%">Redraw the screen. Otherwise use the <a href="../service_functions/viewercontrol.html#VCTL_REDRAW">VCTL_REDRAW</a>
      command to redraw the screen after changing the mode.</td></tr>

   </table>

  </div>

  <div class=dfn>Reserved</div>
  <div class=dfndescr>Reserved for future use. Should be 0.</div>
</div>

<h3>Remarks</h3>
<div class=descr>
</div>

<div class=see>See also:</div><div class=seecont>
<a href="index.html">structures</a> |
<a href="../delphi/tviewersetmode.html">TViewerSetMode</a>
</div>

</body>
</html>
